import React, {Component, Fragment} from 'react';
import {Link} from 'dva/router';
import Child from '../components/child'

class UserPage extends Component {
  handleToIndex = () => {
    this.props.history.push("/")
  }

  render() {
    return (
      <Fragment>
        <h1>我是用户页</h1>
        <Link to="/">首页</Link>
        <button onClick={this.handleToIndex}>首页</button>
        <Child/>
      </Fragment>
    );
  }
}

export default UserPage;
